package com.chinaunicom.behavior.state;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/8/22 14:24 
 * Description: 草稿状态
 */
public class DraftState extends State{

    public DraftState(Document document) {
        super(document);
    }

    @Override
    public void render() {
        System.out.println("文档尚未保存，目前处于草稿状态......");
        Document document = super.getDocument();
        document.changeState(new ModerationState(document));
    }

    @Override
    public void review() {
//        System.out.println("error: 文档尚未保存，目前处于草稿状态......");
    }

    @Override
    public void publish() {
//        System.out.println("error: 文档尚未保存，目前处于草稿状态......");
    }
}
